<?php

namespace App\Service;
use Firebase\JWT\JWT;
use Firebase\JWT\Key;
class Token
{
    public function enToken(){
        $key = 'example_key';
        $payload = [
            'iss' => 'http://example.org',
            'aud' => 'http://example.com',
            'iat' => 1356999524,
            'nbf' => 1357000000
        ];
        return $jwt =  JWT::encode($payload, $key, 'HS256');
    }

}
